export const WebStorageUtils = {

    set: (key: string, value: any) => {
        window.localStorage.setItem(key, JSON.stringify(value));
    },

    get: (key: string): any => {
        try {
            return JSON.parse(window.localStorage.getItem(key));
        } catch (error) {
            return null;
        }
    },

    remove: (key: string): void => {
        window.localStorage.removeItem(key);
    }
};
